<?php
/**
 * 视图控制器
 */
namespace app\manage\controller\operate;

use app\manage\controller\Base;

class Show extends Base
{

	public function index(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','mid','id','operate','flag','coin_id'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'资产变动记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function transfer(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','mid','id','coin_id','status'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'会员转账记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function convert(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','mid','id','status','coin_id'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'货币转换记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function charge(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','mid','coin_id','status'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'充值申请记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

	public function withdraw(){
		$params = $this->request->param();
		// 筛选参数
        $whereFields = ['page','start','end','mid','coin_id','status'];
        // 参数数组
        $whereData = [];
        foreach($whereFields as $field):
            if(isset($params[$field]))
                $whereData[$field] = $params[$field];
        endforeach;

		$pageData = ['title'=>'提现申请记录'];
		$this->assign('pageData',$pageData);
		$this->assign('whereData',$whereData);
		return view();
	}

}